package com.scalpel.common.util;

import java.util.UUID;

/**
 * 字符串工具类
 * Created by scalpel on 2017/1/5.
 */
public class StringUtil {


    /**
     * 判断字符串是否为空
     * @param source
     * @return
     */
    public static boolean isEmpty(String source)
    {
        if(null == source || "".equals(source))
        {
            return  true;
        }
        return  false;
    }


    /**
     * 获取UUID
     * @return
     */
    public static String getStringUUID()
    {
        return UUID.randomUUID().toString().replaceAll("-","");
    }

}
